package com.java.objectstreamdemo;

import java.io.Serializable;

public class Student implements Serializable {
	private static final long serialVersionUID=1L;
	// 属性
	private String stuName;
	private int stuAge;
	private String stuSex;

	// 构造方法
	public Student() {
		super();

	}

	public Student(String stuName, int stuAge, String stuSex) {
		super();
		this.stuName = stuName;
		this.stuAge = stuAge;
		this.stuSex = stuSex;
	}

	// 行为
	public void dostuding() {
		System.out.println(stuName + " is suding...   ");
	}
	// setter,getter

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public int getStuAge() {
		return stuAge;
	}

	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}

	public String getStuSex() {
		return stuSex;
	}

	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}

	@Override
	public String toString() {
		return "Student [stuName=" + stuName + ", stuAge=" + stuAge + ", stuSex=" + stuSex + "]";
	}

	

	// toString
	

}
